﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace 第三章
{
    public partial class _3__3 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Btnlv_Click(object sender, EventArgs e)
        {
            double score = double.Parse(this.TXTscore.Text);
            switch (score / 10)
            {
                case 10:
                case 9: Response.Write("优秀");
                    break;
                case 8:Response.Write("良好");
                    break;
                case 7:Response.Write("一般");
                    break;
                case 6:Response.Write("及格");
                    break;
                default:Response.Write("不及格");
                    break;
            }
        }
    }
}